home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / hardware-part1 / 3056 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: sullivan.ucc.hull.ac.uk!newsmaster@hull.ac.uk
  2. From: "J.E.Hollingsworth" <j.e.hollingsworth@computer-science.hull.ac.uk>
  3. Newsgroups: comp.sys.amiga.programmer,comp.sys.amiga.hardware
  4. Subject: Re: MIDI + C + AMIGA ??
  5. Date: 30 Jan 1996 17:38:26 GMT
  6. Organization: University of Hull
  7. Message-ID: <4ell2i$t35@sullivan.ucc.hull.ac.uk>
  8. References: <4eh5vv$7e7@bright.ecs.soton.ac.uk>
  9. NNTP-Posting-Host: hutton.hull.ac.uk
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 1.1N (X11; I; SunOS 4.1.3 sun4m)
  14. X-URL: news:4eh5vv$7e7@bright.ecs.soton.ac.uk
  15.  
  16. Hello,
  17.  
  18. ars94r@ecs.soton.ac.uk (Andrew Smith) wrote:
  19.  
  20.  
  21. >Hi, I'm trying to get a start writing MIDI programs for my amiga 500, and
  22. >was wondering if anyone has written (or knows of anyone who has written)
  23. >code to implement calling midi events from C. I have heard of Bill Bartons
  24. >midi library but can't get that to work with SAS/Lattice C (don't know
  25. >why!). I'm prepared to switch compiler if it means getting access to a
  26. >ready made set of routines. If anyone knows what packages etc. are needed
  27. >(either commercial or on the net) then I'd be glad to hear from you!!
  28.  
  29. I had problems programming MIDI using SAS C as it didn't seem to wait
  30. for MIDI messages to finish being sent before continuing. I haven't tried
  31. using the midi.library yet, but I'm currently programming a complex MIDI
  32. program in E and have had no problems.
  33.  
  34. Its dead easy: filehandle:=Open('SER:',OLDFILE)
  35.         Out(filehandle,byte)
  36.         .........
  37.         Close(filehandle)
  38.     where byte would be a single byte of the MIDI message.
  39.  
  40. Hope this helps,
  41.  
  42.       James.
  43.  
  44.